package io.renren.service;

import io.renren.common.entity.XlsUsersAddressEntity;
import io.renren.common.service.CrudService;
import io.renren.dto.XlsUsersAddressDTO;
import io.renren.utils.AppResult;

/**
 * 会员地址表
 *
 * @author Mark sunlightcs@gmail.com
 * @since 1.0.0 2020-04-12
 */
public interface XlsUsersAddressService extends CrudService<XlsUsersAddressEntity, XlsUsersAddressDTO> {

    AppResult selectAddressByuserId(Long userId);

    AppResult createAddress(XlsUsersAddressEntity usersAddress);

    AppResult updateAddress(XlsUsersAddressEntity usersAddress);

    AppResult checkIsFirstAddress(Long userId);

    AppResult selectAddressByAddressId(Long id);
}